/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.service.utils;

import java.util.Random;
import java.util.UUID;

/**
 *
 * @author ECH
 */
public class IDGenerator {
        
    private static Random rand = new Random();
        
    public static String generateID() {
        String genID = "";
        String uuid = UUID.randomUUID().toString();
        genID = uuid.split("-")[0];
        
        int prefixRand = (int) (Math.random() * 99);
        genID = genID + prefixRand;
        
        return genID;
    }
    
    public static void main(String[] argv) {
        for (int i = 0; i < 100; i++) {
            System.out.println("CX: " + IDGenerator.generateID());            
        }
    }
}
